¿Que hace lo siguiente:?
In [1]:
x = 0.1
Out[1]:
Guarda en x
el valor ya redondeado (convertido a un flotante cercano), segun el modo actual de redondeo.
In [4]:
get_rounding(Float64)
Out[4]:
In [5]:
bits(x)
Out[5]:
In [6]:
set_rounding(Float64, RoundDown)
Out[6]:
In [7]:
0.1
Out[7]:
In [8]:
float("0.1")
Out[8]:
In [9]:
set_rounding(Float64, RoundNearest)
Out[9]:
In [10]:
0.1
Out[10]:
In [11]:
big(0.1)
Out[11]:
In [13]:
bits(0.1*1.25)
Out[13]:
In [14]:
set_rounding(Float64)
0.1*1.25
Out[14]:
In [15]:
bits(ans)
Out[15]:
In [16]:
versioninfo()
In [ ]: